#include<iostream>
#include<algorithm>
using namespace std;
int gcd(int n, int m)
{
	if (m == 0) {
		return n;
	}
	return gcd(m, n % m);

}
int main()
{
	int a, b, c;
	cin >> a >> b >> c;
	int mi = a;
	mi = min(mi, min(b, c));
	int ma = a;
	ma = max(ma, max(b, c));
	cout << mi / gcd(mi, ma) << "/" << ma / gcd(mi, ma) << endl;
	return 0;
}